﻿#include<iostream>
#include<typeinfo>

using namespace std;

int main() {
	cout << "字符串字面量\"ABC\"\n";
	cout << "类型：" << typeid("ABC").name() << '\n';
	cout << "大小：" << sizeof("ABC") << "\n\n";

	cout << "字符串字面量\"\"\n";
	cout << "类型：" << typeid("").name() << '\n';
	cout << "大小：" << sizeof("") << "\n\n";

	cout << "字符串字面量\"ABC\0DEF\"\n";
	cout << "类型：" << typeid("ABC\0DEF").name() << '\n';
	cout << "大小：" << sizeof("ABC\0DEF") << "\n\n";

	cout << "字符串字面量\"汉字\"\n";
	cout << "类型：" << typeid("汉字").name() << '\n';
	cout << "大小：" << sizeof("汉字") << "\n\n";
	cin.get();
}